package com.yq.service;

import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient("EMP")
public interface EmpService {
    @GetMapping("/emp/{id}")
    String getById(@PathVariable("id") int id);
    @GetMapping("/emp/list")
    String list();
}
